package com.wzcl.app.model.dto;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.wzcl.app.dao.model.AppUser;
import com.wzcl.app.dao.model.Course;
import com.wzcl.app.dao.model.common.Base;
import com.wzcl.app.model.common.PageUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author beingven
 * @Description TODO
 * @createTime 2020年12月11日 14:58:00
 */
@Data
public class WorkShowDto extends BaseDto implements Serializable {
    private Integer id;

    @ApiModelProperty("作品秀图片")
    @JsonBackReference
    private List<String> imageList;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("获赞数")
    private Integer likeNumber;

    @ApiModelProperty("年级")
    private String grade;

    @ApiModelProperty("推送状态")
    private Integer pushStatus;

    @ApiModelProperty("是否已被老师点评：0未点评 1已点评")
    private Integer isComment;

    @ApiModelProperty("优秀作品展示数量")
    private Integer excellentNumber;

    @ApiModelProperty("作品秀审核状态（0未审核 1已通过 2驳回）")
    private Integer checkStatus;

    @ApiModelProperty("关联章节")
    private Integer catalogId;

    @ApiModelProperty("关联课程")
    private Integer courseId;

    @ApiModelProperty("关联用户")
    private Integer userId;

    @Override
    public String toString() {
        return "WorkShowDto{" +
                "id=" + id +
                ", imageList=" + imageList +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", likeNumber=" + likeNumber +
                ", grade='" + grade +
                ", pushStatus=" + pushStatus +
                ", catalogId=" + catalogId +
                ", userId=" + userId +
                '}';
    }
}
